/*-------------------------------------------------------------------------

   File :			iso8bmp.h
   Project :        VeriFone Base application
   Library :
   Description :
   Notes :
   Modification History :
     #     Date      Who                     Description
   ----- -------- ---------- ---------------------------------------------
 **************************************************************************

   Copyright (C) 1996 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifdef ISO8583_DEFINED

typedef struct TagIBMP
{
	int inTransactionCode;
	char szMti[ISO8583_MTI_STRING_SIZE + 1];
	char szMap8583[ISO8583_BIT_MAP_STRING_SIZE + 1];
	char szProcCode[ISO8583_PROC_CODE_STRING_SIZE + 1];
} IBMP_REC;

#define SIZE_IBMP_REC  sizeof(IBMP_REC)

#define BMP_REC_ONLINE	1
#define BMP_REC_OFFLINE 2

extern int (*inLoadISOBitMapVoidFunc)(int, int, unsigned char *, unsigned char *, unsigned char *, int);
extern int (*inLoadISOBitMapAdjustFunc)(int, int, unsigned char *, unsigned char *, unsigned char *, int);
extern int (*inLoadISOBitMapFunc)(int, int, unsigned char *, unsigned char *, unsigned char *, int);
int inISOBMPSearchFunc (IBMP_REC *, int *);
int inIsInBitmapFile (int, int, IBMP_REC *, int *);
int inLoadISOBitMap (int, int, unsigned char *,unsigned char *, unsigned char *, int);
int inLoadISOBitMapVoidAdjust (int, int, unsigned char *, unsigned char *, unsigned char *, int);

#endif /* ISO8583_DEFINED */

